﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using NHibernate.Criterion;

namespace Cn.Edwon.Web.Crud {
    public class ModelEO {
        private String _Pk;
        public String Pk {
            get { return _Pk; }
            set { _Pk = value; }
        }

        private String _ModelId;
        public String ModelId {
            get { return _ModelId; }
            set { _ModelId = value; }
        }

        private Type _Type;
        public Type Type {
            get { return _Type; }
            set { _Type = value; }
        }

        private Object _Instance;
        public Object Instance {
            get { return _Instance; }
            set { _Instance = value; }
        }

        private Boolean _HasCreate = true;
        public Boolean HasCreate {
            get { return _HasCreate; }
            set { _HasCreate = value; }
        }
        private Boolean _HasRead = true;
        public Boolean HasRead {
            get { return _HasRead; }
            set { _HasRead = value; }
        }
        private Boolean _HasUpdate = true;
        public Boolean HasUpdate {
            get { return _HasUpdate; }
            set { _HasUpdate = value; }
        }
        private Boolean _HasDelete = true;
        public Boolean HasDelete {
            get { return _HasDelete; }
            set { _HasDelete = value; }
        }
        private Boolean _HasOrder = true;
        public Boolean HasOrder {
            get { return _HasOrder; }
            set { _HasOrder = value; }
        }

        private IList<PropertyEO> _Properties;
        public IList<PropertyEO> Properties {
            get { return _Properties; }
            set { _Properties = value; }
        }

        private Int32 _PageSize;
        public Int32 PageSize {
            set { _PageSize = value; }
            get { return _PageSize; }
        }


    }
}
